package o;

import android.content.Context;
import com.tencent.mm.opensdk.constants.ConstantsAPI.AppSupportContentFlag;
import java.text.DecimalFormat;
import o.ewm.n;

public class dwa {
    public static String ˋ(long j) {
        Context ˋ = ContentManager.getInstant().getContext();
        DecimalFormat decimalFormat = new DecimalFormat("###.#");
        if (j < AppSupportContentFlag.MMAPP_SUPPORT_XLS) {
            return ˋ.getString(n.ˉᐝ, new Object[]{decimalFormat.format(j)});
        } else if (j < 1048576) {
            r2 = ((double) j) / 1024.0d;
            return ˋ.getString(n.ˈᐝ, new Object[]{decimalFormat.format(r2)});
        } else if (j < 1073741824) {
            r2 = (((double) j) / 1024.0d) / 1024.0d;
            return ˋ.getString(n.ˉˊ, new Object[]{decimalFormat.format(r2)});
        } else {
            r2 = ((((double) j) / 1024.0d) / 1024.0d) / 1024.0d;
            return ˋ.getString(n.ˈˋ, new Object[]{decimalFormat.format(r2)});
        }
    }
}
